
package com.leaves.sys.modular.auth.param;

import com.leaves.core.pojo.base.param.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 参数配置
 * </p>
 *
 * @author yubaoshan
 * @date 2019/6/20 13:44
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("注册用户")
public class RegisterUserParams extends BaseParam {

/*
    @NotEmpty(message = "姓名不能为空", groups = {register.class})
*/
    @ApiModelProperty("姓名")
    String name;


    @NotEmpty(message = "账号不能为空", groups = {register.class})
    @ApiModelProperty("账号")
    String account;


    @NotEmpty(message = "密码不能为空", groups = {register.class})
    @ApiModelProperty("密码")
    String password;


/*
    @NotEmpty(message = "手机号不能为空", groups = {register.class})
*/
    @ApiModelProperty("手机号")
    String phone;


}
